package com.tuo51.childcare.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 每日观察记录
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DailyTaskTemplateGroupVO {

    private String title;

    private String dimensionId;

    private List<DailyTaskTemplateVO> templates;

    public static DailyTaskTemplateGroupVO of(String title, String dimensionId, List<DailyTaskTemplateVO> templates){
        DailyTaskTemplateGroupVO ret = new DailyTaskTemplateGroupVO();
        ret.setTitle(title);
        ret.setDimensionId(dimensionId);
        ret.setTemplates(templates);
        return ret;
    }
}
